package org.datastealer.controller;

import org.datastealer.bean.DataSource;
import org.datastealer.service.DashBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Note：
 *
 * @author ：mengjw
 * @description：仪表盘控制层
 * @date ：Created in 2020/9/28
 */
@RestController
@RequestMapping("/datastealer")
public class DashBoardController {

    @Autowired
    private DashBoardService dashBoardService;

    @GetMapping("/dataSource")
    public DataSource getDataSource() {
        return dashBoardService.getDataSource();
    }

}